{% extends 'base.html' %}
{% load staticfiles %}

{% block main %}
    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
              <div id="posts" class="posts-expand">
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">分类</h2>
              </header>

              <div class="category-all-page">
                <div class="category-all-title">
                    目前共计 {{ category.count }} 个分类
                </div>
                <div class="category-all">
                  <ul class="category-list">
                      {% for i in category %}
                      <li class="category-list-item">
                          <a class="category-list-link" href="{{ i.id }}">
                             {{ i.name }}
                          </a>
                          <span class="category-list-count">{{ i.article_set.count }}</span>
                      </li>
                      {% endfor %}
                  </ul>
                </div>


              </div>
          </div>
        </div>
      </div>
      </div>
          {% include 'layout/info.html' %}
    </main>
{% endblock %}